package com.kuang.single;

/**
 * Author: Zhang Dongwei
 * Date: 2022/3/16 17:39
 * 静态内部类
 */
public class Holder {
    private Holder(){  // 构造器私有

    }

    public static Holder getInstance(){
        return InnerClass.HOLDER;
    }

    public static class InnerClass{
        private static final Holder HOLDER =new Holder();
    }
}
